package com.springboot.project.common.dao;

import com.springboot.project.common.entity.Role;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.springboot.project.common.node.ZTreeNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 角色表 Mapper 接口
 * </p>
 *
 * @author lby
 * @since 2018-05-06
 */
public interface RoleDao extends BaseMapper<Role> {

    List<Role> list(Map<String,Object> map);

    int count(Map<String,Object> map);

    int deleteRolesById(@Param("roleId") Integer roleId);

    List<ZTreeNode> roleTree();

    List<Map<String, Object>> roleTableList(Map<String, Object> map);
}